﻿<!DOCTYPE html>
<html class="detailsHtml" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>安全警示室</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="icon" href="/frontEnd/images/favicon.ico">
		<link rel="stylesheet" type="text/css" href="/frontEnd/css/style.css" />
	</head>
    <body>
        <div class="boxCenter">
        	<h1 class="title" id="coreTitle"></h1>
        	<div id="roll2">
        		<div class="detailsPage" id="page1">
	        		<p id="coreInfo"></p>
        		</div>
        		<div class="detailsPage" id="page2"></div>
        	</div>
        </div>
        <script src="/frontEnd/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script th:inline="javascript">
            var list = [[${coreManagement}]]
            var coreTitle = list.coreTitle;
            var coreInfo = list.coreInfo;
            $('#coreTitle').html(coreTitle).attr("class","title");
            $('#coreInfo').html(coreInfo);
		</script>
		<script type="text/javascript">
        	/*文字滚动*/
			var area1 = document.getElementById('roll2');
			var con1 = document.getElementById('page1');
			var con2 = document.getElementById('page2');
			
			var speed = 50;
			area1.scrollTop = 0;
			
			if(con1.offsetHeight>=area1.offsetHeight){
				con2.innerHTML = con1.innerHTML;
			}
			
			function scrollUp() {
				if(area1.scrollTop >= con1.offsetHeight) {
					area1.scrollTop = 0;
				} else {
					area1.scrollTop++; //向上滚动
				}
			}
			var myScroll = setInterval("scrollUp()", speed);
			area1.onmouseover = function() {
				clearInterval(myScroll);
			}
			area1.onmouseout = function() {
				clearInterval(myScroll);
				myScroll = setInterval("scrollUp()", speed);
			}
        </script>

    </body>

</html>